using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DevExpress.ExpressApp.DC;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Xpo;
using DevExpress.Persistent.Validation;
namespace Ascent.QiPei.Module.BusinessObjects.Base
{
  [DefaultClassOptions]
  [DevExpress.Persistent.Base.NavigationItemAttribute("基础数据")]
  [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("货运站")]
  public partial class GargoTeminal : DevExpress.Persistent.BaseImpl.BaseObject
  {
    private System.String _phone;
    private System.Boolean _isActiva;
    private System.String _remarks;
    private System.String _commission;
    private System.String _gargoName;
    public GargoTeminal(DevExpress.Xpo.Session session)
      : base(session)
    {
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("名称")]
    [RuleRequiredField(DefaultContexts.Save)]
    public System.String GargoName
    {
      get
      {
        return _gargoName;
      }
      set
      {
        SetPropertyValue("GargoName", ref _gargoName, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("代收费用")]
    [RuleRequiredField(DefaultContexts.Save)]
    public System.String Commission
    {
      get
      {
        return _commission;
      }
      set
      {
        SetPropertyValue("Commission", ref _commission, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("备注")]
    public System.String Remarks
    {
      get
      {
        return _remarks;
      }
      set
      {
        SetPropertyValue("Remarks", ref _remarks, value);
      }
    }
    [DevExpress.ExpressApp.DC.XafDisplayNameAttribute("是否可用")]
    [DevExpress.Persistent.Base.VisibleInLookupListViewAttribute(false)]
    [DevExpress.Persistent.Base.VisibleInListViewAttribute(false)]
    public System.Boolean IsActiva
    {
      get
      {
        return _isActiva;
      }
      set
      {
        SetPropertyValue("IsActiva", ref _isActiva, value);
      }
    }
    //[System.ComponentModel.BrowsableAttribute(false)]
    //public Ascent.QiPei.Module.BusinessObjects.Base.Customer Customer
    //{
    //  get
    //  {
    //    return _customer;
    //  }
    //  set
    //  {
    //    if (_customer == value)
    //      return;
    //    Ascent.QiPei.Module.BusinessObjects.Base.Customer prevCustomer = _customer;
    //    _customer = value;
    //    if (IsLoading)
    //      return;
    //    if (prevCustomer != null && prevCustomer.DefaultGargoTeminal == this)
    //      prevCustomer.DefaultGargoTeminal = null;
    //    if (_customer != null)
    //      _customer.DefaultGargoTeminal = this;
    //    OnChanged("Customer");
    //  }
    //}
    //public Ascent.QiPei.Module.BusinessObjects.Sales.SaleOrder SaleOrder
    //{
    //  get
    //  {
    //    return _saleOrder;
    //  }
    //  set
    //  {
    //    if (_saleOrder == value)
    //      return;
    //    Ascent.QiPei.Module.BusinessObjects.Sales.SaleOrder prevSaleOrder = _saleOrder;
    //    _saleOrder = value;
    //    if (IsLoading)
    //      return;
    //    if (prevSaleOrder != null && prevSaleOrder.GargoTeminal == this)
    //      prevSaleOrder.GargoTeminal = null;
    //    if (_saleOrder != null)
    //      _saleOrder.GargoTeminal = this;
    //    OnChanged("SaleOrder");
    //  }
    //}
    //public Ascent.QiPei.Module.BusinessObjects.Purchase.PurchasingOrder PurchasingOrder
    //{
    //  get
    //  {
    //    return _purchasingOrder;
    //  }
    //  set
    //  {
    //    if (_purchasingOrder == value)
    //      return;
    //    Ascent.QiPei.Module.BusinessObjects.Purchase.PurchasingOrder prevPurchasingOrder = _purchasingOrder;
    //    _purchasingOrder = value;
    //    if (IsLoading)
    //      return;
    //    if (prevPurchasingOrder != null && prevPurchasingOrder.GargoTeminal == this)
    //      prevPurchasingOrder.GargoTeminal = null;
    //    if (_purchasingOrder != null)
    //      _purchasingOrder.GargoTeminal = this;
    //    OnChanged("PurchasingOrder");
    //  }
    //}
    //public Ascent.QiPei.Module.BusinessObjects.Finance.AccountPayable AccountPayable
    //{
    //  get
    //  {
    //    return _accountPayable;
    //  }
    //  set
    //  {
    //    if (_accountPayable == value)
    //      return;
    //    Ascent.QiPei.Module.BusinessObjects.Finance.AccountPayable prevAccountPayable = _accountPayable;
    //    _accountPayable = value;
    //    if (IsLoading)
    //      return;
    //    if (prevAccountPayable != null && prevAccountPayable.GargoTeminal == this)
    //      prevAccountPayable.GargoTeminal = null;
    //    if (_accountPayable != null)
    //      _accountPayable.GargoTeminal = this;
    //    OnChanged("AccountPayable");
    //  }
    //}
    //public Ascent.QiPei.Module.BusinessObjects.Finance.AccountReceivable AccountReceivable
    //{
    //  get
    //  {
    //    return _accountReceivable;
    //  }
    //  set
    //  {
    //    if (_accountReceivable == value)
    //      return;
    //    Ascent.QiPei.Module.BusinessObjects.Finance.AccountReceivable prevAccountReceivable = _accountReceivable;
    //    _accountReceivable = value;
    //    if (IsLoading)
    //      return;
    //    if (prevAccountReceivable != null && prevAccountReceivable.GargoTeminal == this)
    //      prevAccountReceivable.GargoTeminal = null;
    //    if (_accountReceivable != null)
    //      _accountReceivable.GargoTeminal = this;
    //    OnChanged("AccountReceivable");
    //  }
    //}
    public System.String Phone
    {
      get
      {
        return _phone;
      }
      set
      {
        SetPropertyValue("Phone", ref _phone, value);
      }
    }
  }
}
